<?php
// DB Created by Rich L. a member in service in Northern Delaware.  Please feel free to share this code wherever it may be useful to alcholoics.  Should you have questons please contact me at sobernerd@gmail.com
$pageTitle = 'Soberpress - Administration - Home Modules';
require_once ('../../config/include_paths.php');
require_once('config.php');
require_once('dbconnect.php');	// database connect script.
$page_id = 1; //home=1 contacts=4
$table = 'links'; //set appropriate table ?>
<script language="javascript" type="text/javascript">
var table = '<?php echo $table ?>';
</script>
<?php
session_start();

if ($_SESSION['logged_in'] == 0) {
	require ('security_check.php');
} else {
require_once ('adminhead.php');
?>
  <h2>Home Modules - Online Resources</h2>
  	<div id="sortable_content_links">
        <ul>
        <?php 
		$enabled = 1;
		require ('module_list.php'); ?>
        </ul>
    </div>
    <div id="disabled_content_links">
    	<ul>
        <?php 
		$enabled = 0;
		require ('module_list.php'); ?>
        </ul>
    </div>
    
<?php } ?>